<template>
  <div class="exam-rate">
    <van-nav-bar left-arrow placeholder title="考试排行" fixed />
    <div class="exam-rate__content">
      <div class="exam-rate__title">2022年下半年</div>
      <div class="exam-rate__title">保密信息安全考试排行榜</div>
      <div class="exam-rate__date">周期：2022.12.05-2022.12.11</div>

      <div class="exam-rate__more">
        <div class="exam-rate__my">
          <div class="exam-rate__my-left">
            <div class="exam-rate__my-title">
              <div>我的</div>
              <div>成绩</div>
            </div>
            <img src="@/assets/images/login.png" />
            <span>晨夕会</span>
          </div>
          <div class="exam-rate__my-sort">第10名</div>
          <div class="exam-rate__time">07’09</div>
          <div class="exam-rate__my-score">96分</div>
        </div>

        <div class="exam-rate__ph">
          <div class="thead">
            <div class="th1 color-q">排行</div>
            <div class="th2 color-q" style="transform: translateX(10px)">
              姓名
            </div>
            <div class="th4 color-q">用时</div>
            <div class="th3 color-q">分数</div>
          </div>
          <div class="tbody">
            <div class="trow" v-for="i in 10" :key="i">
              <div class="th1">{{ i }}</div>
              <div class="th2">
                <img src="@/assets/images/login.png" />
                <span>晨夕会</span>
              </div>
              <div class="th4">12’09</div>
              <div class="th3">98分</div>
            </div>
          </div>
        </div>

        <div class="exam-rate__tip">
            <div class="xs-l"></div>
            <div class="xs-r"></div>

          <div class="exam-rate__top">
            <span>恭喜考试排名前十</span>
            <div>去考试</div>
          </div>
          <div class="exam-rate__bottom">
            恭喜你考试进入排名前十，可继续考试提高排名
          </div>
        </div>
      </div>
    </div>
    <FooterText>企业口号标语</FooterText>
  </div>
</template>
<script name="ExamRate" setup>
import FooterText from "@/components/FooterText.vue"
</script>
<style lang="scss" scoped>
.exam-rate {
  background-image: url("@/assets/images/ksphbg.png");
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-color: #F4F8FF;
  padding: 18px;
  ::v-deep .van-nav-bar {
    background: transparent;
  }
  &__title {
    font-size: 18px;
    font-family: PingFang-SC, PingFang-SC;
    font-weight: 800;
    color: #272b2d;
    line-height: 25px;
  }
  &__date {
    font-size: 12px;
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    color: #3f3f3f;
    line-height: 17px;
    margin-top: 10px;
    margin-bottom: 24px;
  }
  &__time {
    font-size: 14px;
    color: #272b2d;
  }

  &__more {
    background: #ffffff;
    border-radius: 12px;
    padding: 12px 16px;
  }
  &__my {
    padding: 10px 12px;
    background: #ffffff;
    box-shadow: 0px 0px 8px 0px rgba(219, 219, 219, 0.32);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .middle{
        color: #FFA940 !important;
    }
    .excellent{
        color: #0DC678 !important;
    }
    &-left {
      display: flex;
      align-items: center;
      img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        margin: 0 10px;
      }
      span {
        font-size: 14px;
        font-family: PingFangSC, PingFang SC;
        font-weight: 500;
        color: #272b2d;
      }
    }
    &-title {
      font-size: 16px;
      font-family: PingFang-SC, PingFang-SC;
      font-weight: 800;
      color: #0dc678;
      line-height: 22px;
    }
    &-sort {
      font-size: 14px;
      font-family: PingFangSC, PingFang SC;
      font-weight: 500;
      color: #0dc678;
      line-height: 22px;
    }
    &-score {
      font-size: 14px;
      font-family: PingFangSC, PingFang SC;
      font-weight: 500;
      color: #0dc678;
      line-height: 22px;
    }
  }

  &__ph {
    padding-top: 14px;
    .thead {
      display: flex;
      align-items: center;
      height: 20px;
      margin-bottom: 14px;
      .color-q {
        font-size: 14px;
        font-family: PingFangSC, PingFang SC;
        font-weight: 400;
        color: #b9bdbd;
        line-height: 20px;
      }
    }
    .trow {
      display: flex;
      align-items: center;
      margin-bottom: 20px;
    }
    .th1 {
      width: 28px;
      text-align: center;
    }
    .th2 {
      display: flex;
      align-items: center;
      flex: 1;
      padding-left: 26px;
      img {
        width: 40px;
        height: 40px;
        margin-right: 10px;
        border-radius: 50%;
      }
      span {
        font-size: 14px;
        font-family: PingFangSC, PingFang SC;
        font-weight: 500;
        color: #272b2d;
      }
    }
    .th3 {
      font-size: 16px;
      font-family: PingFangSC, PingFang SC;
      font-weight: 500;
      color: #272b2d;
    }
    .th4 {
      width: 42px;
      margin-right: 48px;
      text-align: center;
    }
  }

  &__tip {
    position: relative;
    border-top: 1px dashed #B9BDBD;
    padding-top: 16px;
    .xs-l{
        position: absolute;
        top: -15px;
        left: -36px;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background-color: #F4F8FF;
    }
    .xs-r{
        position: absolute;
        top: -15px;
        right: -36px;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background-color: #F4F8FF;
    }
  }
  &__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    span {
      font-size: 16px;
      font-family: PingFangSC, PingFang SC;
      font-weight: 500;
      color: #272b2d;
      line-height: 22px;
    }
    div {
      width: 58px;
      height: 24px;
      background: linear-gradient(126deg, #54d781 0%, #00c37d 100%);
      border-radius: 16px;
      font-size: 12px;
      font-family: PingFangSC, PingFang SC;
      font-weight: 400;
      color: #ffffff;
      line-height: 17px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }
  &__bottom {
    font-size: 14px;
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    color: #676b6b;
    line-height: 20px;
    text-align: justify;
    margin-top: 10px;
  }
}
</style>